package com.ecoolex.union.pay.retailer.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.union.pay.retailer.entity.PaymentChannelConfig;
import com.ecoolex.union.pay.retailer.entity.PaymentChannelConfigExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PaymentChannelConfigMapper {
    long countByExample(PaymentChannelConfigExample example);

    int deleteByExample(PaymentChannelConfigExample example);

    int deleteByPrimaryKey(Integer payType);

    int insert(PaymentChannelConfig record);

    int insertSelective(@Param("record") PaymentChannelConfig record, @Param("selective") PaymentChannelConfig.Column ... selective);

    PaymentChannelConfig selectOneByExample(PaymentChannelConfigExample example);

    List<PaymentChannelConfig> selectByExample(PaymentChannelConfigExample example);

    PaymentChannelConfig selectByPrimaryKey(Integer payType);

    PaymentChannelConfig selectByPrimaryKeyWithLogicalDelete(@Param("payType") Integer payType, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PaymentChannelConfig record, @Param("example") PaymentChannelConfigExample example, @Param("selective") PaymentChannelConfig.Column ... selective);

    int updateByExample(@Param("record") PaymentChannelConfig record, @Param("example") PaymentChannelConfigExample example);

    int updateByPrimaryKeySelective(@Param("record") PaymentChannelConfig record, @Param("selective") PaymentChannelConfig.Column ... selective);

    int updateByPrimaryKey(PaymentChannelConfig record);

    int batchInsert(@Param("list") List<PaymentChannelConfig> list);

    int batchInsertSelective(@Param("list") List<PaymentChannelConfig> list, @Param("selective") PaymentChannelConfig.Column ... selective);

    int logicalDeleteByExample(@Param("example") PaymentChannelConfigExample example);

    int logicalDeleteByPrimaryKey(Integer payType);
}